package com.cloud.controller;

import com.cloud.dto.UserDto;
import com.cloud.service.UserService;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
 *  user controller
  * @Author wangjian (jian.wang@bertelsmann.com.cn)
  * @Date 2016/11/16 9:32
  */
@RestController
@RequestMapping("/v1/user")
public class UserController {

	@Autowired
	UserService userService;

	@RequestMapping(value="/userData",method=RequestMethod.POST)
	public UserDto readUserInfo(){
		UserDto ls=userService.searchAll();
		return ls;
	}
}
